<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
     <%@page import="mesBean.Categories"%>
<%@page import="java.util.ArrayList"%>
     <%
    ArrayList<Categories> listecategorie = (ArrayList<Categories>)request.getAttribute("mescategories");
//     ArrayList<Categories> categorieFromSession = (ArrayList<Categories>)session.getAttribute("listecategorie");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Afficher Categories</title>
</head>
<body>
<table>
<thead> 
                         <tr> 
                            <th class="head0">Id Categorie</th> 
                            <th class="head1">Categories</th> 
             
                       </tr> 
                   
                 </thead> 
                   
                   <% for (Categories cat : listecategorie){ %>
                  <tr> 
                    <td><%=cat.getNoCategories() %></td> 
                      <td><%=cat.getNomCategorie()%></td> 
                   
                   </tr> 
                    
                     <% 
		}	
		%> 
		</table>
</body>
</html>